package com.nlx.notes.module.service.loan;

import com.nlx.notes.module.bean.dto.loan.LoanBorrowerQueryDTO;
import com.nlx.notes.module.bean.dto.loan.LoanBorrowerSaveDTO;
import com.nlx.notes.module.bean.vo.loan.BorrowerInfoVO;
import com.nlx.notes.module.entity.BorrowerInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 借款人信息 服务类
 * </p>
 *
 * @author nlx
 * @since 2025-10-25
 */
public interface IBorrowerInfoService extends IService<BorrowerInfo> {


    List<BorrowerInfoVO> listByCondition(LoanBorrowerQueryDTO loanBorrowerQueryDTO);


    BorrowerInfoVO saveBorrower(LoanBorrowerSaveDTO loanBorrowerSaveDTO);

    BorrowerInfo findAndCheckById(Long borrowerId,Long userId);


    BorrowerInfo findByBorrowerName(String name, Long userId);
}
